#include <iostream>

using namespace std;

class Singleton{

private:
    Singleton(){}

public:
    static Singleton &getInstance(){
        static Singleton s;
        cout << &s << endl;
        return s;
    }

    Singleton(const Singleton&)=delete;
    Singleton &operator=(const Singleton&)=delete;
};

void test(){
    Singleton &s=Singleton::getInstance();

}

int main(){
    test();
    return 0;
}
